//
//  UILabel+Extension.swift
//  FWSinaWeibo
//
//  Created by 范伟 on 16/2/24.
//  Copyright © 2016年 FanWei. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(fw_text: String,
        textColor: UIColor = UIColor.darkGrayColor(),
        fontSize: CGFloat = 14,
        textAlignment: NSTextAlignment = .Left) {
            
            self.init()

            self.text = fw_text
            self.textColor = textColor
            font = UIFont.systemFontOfSize(fontSize)
            self.textAlignment = textAlignment
            
            self.numberOfLines = 0
            
            sizeToFit()
    }
}
